In order to test against the playground environment, please use the following base url: https://login.playground.klarna.com.
You can trigger the consent screen in various ways depending on the environment and integration type.
Production
- Open Klarna app and go to Profile -> Security and privacy -> Data sharing and revoke consent.
Playground
- If you're using the Klarna Web SDK, add the following query parameter to the URL where the "Sign in with Klarna" button is loaded:
klarna-auth-prompt=consent
. - For those using the Identity platform or integrating directly with the API, the simplest approach is to create a new Klarna user account by using a different phone number or email address during login.
- Verify that SIWK button appears in the right places, for example login component or the myaccount page.
- Verify that the button is clickable and is not covered by any other elements or not blocked by cookie prompts or other toggles.
- Verify that the button is accessible, e.g. can be clicked with keyboard-only setup.
- Verify that the flow is accessible to users with disabilities, following WCAG standards.
- Verify that clicking on the button starts the flow without delay.
- Verify that the redirect uri is provided to the script.
- Verify that redirect flow starts if popups are blocked in the browser.
- Verify that popup flow starts if you do not support redirect flow.
- Verify that the SIWK flow appears in a correct language.
- Verify that in case of an error, error messages are displayed clearly and accurately throughout the flow, providing actionable information to the user.
- (In Sweden and Norway) Verify that the Bank ID step does not have any errors and on mobile you get redirected back the the app after using Bank ID app. Both scanning of the QR code and confirming in the Bank ID app on the same device should work.
- Verify that if you did not have an account with Klarna associated with provided phone number, or your account was incomplete, you see onboarding screens - email and billing address collection.
- Verify that if you are a new user you see the consent screen at the end of the flow.
- Verify all data points on the consent screen. You should only request what you require to create an account.
- Verify that Privacy policy and Terms and conditions links are going to the correct pages.
- Verify that if you already have an account in your app with the identifier from the Klarna account you used to login, accounts are either merged automatically or you saw a screen informing about the merge. Verify that after logging in either popup closes or you get redirected back to the app and you are in a logged in state in the app.
- Verify that when using SIWK to register a new account, after flow finishes you are also back in the app in a logged in state. You should not be required to use SIWK again to login.
- Verify that the new app’s account contain the same data as your Klarna account.
- Verify that if you logged in to Klarna on a device through any of the products (Klarna App, Klarna Payments) you do not see the login screen in the Sign in with Klarna flow.
- Verify that as a returning user you do not see the consent screen in the flow.
- Verify that after revoking consent through Klarna App and logging out from your app, next time you sign in with Klarna you see the consent screen.
- If you have Klarna integrated in your checkout, it is imperative to verify that if you logged in with Sign in with Klarna you are automatically logged in in the Klarna purchase flow.